﻿using Algorithms;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Collections;

namespace UnitTests
{
    
    /// <summary>
    ///This is a test class for MinPQTest and is intended
    ///to contain all MinPQTest Unit Tests
    ///</summary>
    [TestClass()]
    public class MinPQTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for MinPQ`1 Constructor
        ///</summary>
        public void MinPQConstructorTestHelper<T>()
            where T : IComparable<T>
        {
            int capacity = 10; 
            Comparer<T> comparator = null; 
            MinPQ<T> target = new MinPQ<T>(capacity, comparator);
            Assert.IsNotNull(target);
        }

        [TestMethod()]
        public void MinPQConstructorTest()
        {
            MinPQConstructorTestHelper<int>();
        }

        /// <summary>
        ///A test for MinPQ`1 Constructor
        ///</summary>
        public void MinPQConstructorTest1Helper<T>()
            where T : IComparable<T>
        {
            int capacity = 1000; 
            MinPQ<T> target = new MinPQ<T>(capacity);
            Assert.IsNotNull(target);
        }

        [TestMethod()]
        public void MinPQConstructorTest1()
        {
            MinPQConstructorTest1Helper<char>();
        }

        /// <summary>
        ///A test for MinPQ`1 Constructor
        ///</summary>
        public void MinPQConstructorTest2Helper<T>()
            where T : IComparable<T>
        {
            MinPQ<T> target = new MinPQ<T>();
            Assert.IsNotNull(target);
        }

        [TestMethod()]
        public void MinPQConstructorTest2()
        {
            MinPQConstructorTest1Helper<string>();
        }

        /// <summary>
        ///A test for AssertIsMinHeap
        ///</summary>
        public void AssertIsMinHeapTestHelper<T>()
            where T : IComparable<T>
        {
            MinPQ_Accessor<int> target = new MinPQ_Accessor<int>(); 
            target.AssertIsMinHeap();
        }

        [TestMethod()]
        [DeploymentItem("Algorithms.exe")]
        public void AssertIsMinHeapTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call AssertIsMinHeapTestHelper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for Dequeue
        ///</summary>
        public void DequeueTestHelper<T>()
            where T : IComparable<T>
        {
            MinPQ<T> target = new MinPQ<T>(); // TODO: Initialize to an appropriate value
            T expected = default(T); // TODO: Initialize to an appropriate value
            T actual;
            actual = target.Dequeue();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void DequeueTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call DequeueTestHelper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for Enqueue
        ///</summary>
        public void EnqueueTestHelper<T>()
            where T : IComparable<T>
        {
            MinPQ<T> target = new MinPQ<T>(); // TODO: Initialize to an appropriate value
            T item = default(T); // TODO: Initialize to an appropriate value
            target.Enqueue(item);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void EnqueueTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call EnqueueTestHelper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for Exchange
        ///</summary>
        public void ExchangeTestHelper<T>()
            where T : IComparable<T>
        {
            MinPQ_Accessor<T> target = new MinPQ_Accessor<T>(); // TODO: Initialize to an appropriate value
            int i = 0; // TODO: Initialize to an appropriate value
            int j = 0; // TODO: Initialize to an appropriate value
            target.Exchange(i, j);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        [DeploymentItem("Algorithms.exe")]
        public void ExchangeTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call ExchangeTestHelper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for GetEnumerator
        ///</summary>
        public void GetEnumeratorTestHelper<T>()
            where T : IComparable<T>
        {
            MinPQ<T> target = new MinPQ<T>(); // TODO: Initialize to an appropriate value
            IEnumerator<T> expected = null; // TODO: Initialize to an appropriate value
            IEnumerator<T> actual;
            actual = target.GetEnumerator();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void GetEnumeratorTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call GetEnumeratorTestHelper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for Greater
        ///</summary>
        public void GreaterTestHelper<T>()
            where T : IComparable<T>
        {
            MinPQ_Accessor<T> target = new MinPQ_Accessor<T>(); // TODO: Initialize to an appropriate value
            int i = 0; // TODO: Initialize to an appropriate value
            int j = 0; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.Greater(i, j);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        [DeploymentItem("Algorithms.exe")]
        public void GreaterTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call GreaterTestHelper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for IsMinHeap
        ///</summary>
        public void IsMinHeapTestHelper<T>()
            where T : IComparable<T>
        {
            MinPQ_Accessor<T> target = new MinPQ_Accessor<T>(); // TODO: Initialize to an appropriate value
            int k = 0; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.IsMinHeap(k);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        [DeploymentItem("Algorithms.exe")]
        public void IsMinHeapTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call IsMinHeapTestHelper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for Peek
        ///</summary>
        public void PeekTestHelper<T>()
            where T : IComparable<T>
        {
            MinPQ<T> target = new MinPQ<T>(); // TODO: Initialize to an appropriate value
            T expected = default(T); // TODO: Initialize to an appropriate value
            T actual;
            actual = target.Peek();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void PeekTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call PeekTestHelper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for PopupByAscending
        ///</summary>
        public void PopupByAscendingTestHelper<T>()
            where T : IComparable<T>
        {
            MinPQ<T> target = new MinPQ<T>(); // TODO: Initialize to an appropriate value
            IEnumerable<T> expected = null; // TODO: Initialize to an appropriate value
            IEnumerable<T> actual;
            actual = target.PopupByAscending();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void PopupByAscendingTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call PopupByAscendingTestHelper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for PopupByDescending
        ///</summary>
        public void PopupByDescendingTestHelper<T>()
            where T : IComparable<T>
        {
            MinPQ<T> target = new MinPQ<T>(); // TODO: Initialize to an appropriate value
            IEnumerable<T> expected = null; // TODO: Initialize to an appropriate value
            IEnumerable<T> actual;
            actual = target.PopupByDescending();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void PopupByDescendingTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call PopupByDescendingTestHelper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for Sink
        ///</summary>
        public void SinkTestHelper<T>()
            where T : IComparable<T>
        {
            MinPQ_Accessor<T> target = new MinPQ_Accessor<T>(); // TODO: Initialize to an appropriate value
            int k = 0; // TODO: Initialize to an appropriate value
            target.Sink(k);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        [DeploymentItem("Algorithms.exe")]
        public void SinkTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call SinkTestHelper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for Swim
        ///</summary>
        public void SwimTestHelper<T>()
            where T : IComparable<T>
        {
            MinPQ_Accessor<T> target = new MinPQ_Accessor<T>(); // TODO: Initialize to an appropriate value
            int k = 0; // TODO: Initialize to an appropriate value
            target.Swim(k);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        [DeploymentItem("Algorithms.exe")]
        public void SwimTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call SwimTestHelper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for System.Collections.IEnumerable.GetEnumerator
        ///</summary>
        public void GetEnumeratorTest1Helper<T>()
            where T : IComparable<T>
        {
            IEnumerable target = new MinPQ<T>(); // TODO: Initialize to an appropriate value
            IEnumerator expected = null; // TODO: Initialize to an appropriate value
            IEnumerator actual;
            actual = target.GetEnumerator();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        [DeploymentItem("Algorithms.exe")]
        public void GetEnumeratorTest1()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call GetEnumeratorTest1Helper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for Count
        ///</summary>
        public void CountTestHelper<T>()
            where T : IComparable<T>
        {
            MinPQ<T> target = new MinPQ<T>(); // TODO: Initialize to an appropriate value
            int actual;
            actual = target.Count;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void CountTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call CountTestHelper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for IsEmpty
        ///</summary>
        public void IsEmptyTestHelper<T>()
            where T : IComparable<T>
        {
            MinPQ<T> target = new MinPQ<T>(); // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.IsEmpty;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void IsEmptyTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call IsEmptyTestHelper<T>() with appropriate type parameters.");
        }
    }
}
